package com.yiqi.lottery.feature.find.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qiniu.android.utils.StringUtils;
import com.yiqi.lottery.R;
import com.yiqi.lottery.entity.bo.FindScoreBo;
import com.yiqi.lottery.entity.bo.LotteryHistoryBo;
import com.yiqi.lottery.entity.bo.LuckyHistoryBo;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class LuckyHistoryAdapter extends BaseQuickAdapter<LotteryHistoryBo,BaseViewHolder> {

    public LuckyHistoryAdapter() {
        super(R.layout.item_lottery_lucky);
    }

    @Override
    protected void convert(BaseViewHolder helper, LotteryHistoryBo item) {

            StringBuilder sb = new StringBuilder(item.getCode());
            sb.replace(14, 15, "\t|\t");


                helper.setText(R.id.tv_lottery_lucky_list_qiname,"第"+item.getIssue()+"期")
                 .setText(R.id.tv_lottery_lucky_list_date,"开奖："+ sb.toString().replaceAll("-","  "));



         ;
    }
}
